In the broader market, BSE midcap and BSE smallcap indices underperformed the larger counterparts and ended flat with a negative bias.
Positive cues from the global market front aided the rally.
The breakdown of talks between Greece and its international creditors raised fears of Greece's exit from the euro zone.
Metals bucked the trend and shone across the board.
Gains were led by index heavyweights Reliance Industries and Infosys.
The S&P BSE Sensex closed 318 points at 24,455 and the Nifty50 shed 99 points to end at 7,438.
Kotak Mahindra Bank and Vedanta were the top Nifty gainers.
World Bank lowered its global economic growth outlook for 2016 to 2.9% from 3.3% earlier.
ONGC was the top performer while private banking major ICICI Bank extended gains
The 30-share Sensex ended up 12 points at 28,517 while the 50-share Nifty ended nearly unchanged at 8,660.
The 30-share Sensex ended down 604 points at 28,845 and the 50-share Nifty ended down 181 points at 8,757. The Bank Nifty ended down 602 points at 19,146.
Sensex gained nearly 0.4% or 96 points at 26087 level while Nifty ended up by 42 points or 0.5% at 7,791.40 level.
The 30 share Sensex ended up 183 points at 27,470 and the 50-share Nifty gained 44 points to close at 8,295.
Sensex closed 63.82 points higher at 26,851.05 in Muhurat trading; Nifty rises 18.65 points to end at 8,014.55.
Roadshows will be held in Singapore, Hong Kong, London, New York and Boston, NTPC gained close to 1%.
Analysts agree China, Greece and US Fed developments need careful monitoring but India should gain, over time, from relative rise of the dollar and fall in commodity prices.
Markets recorded their biggest single-day fall since August 1 amid growth concerns in the euro zone.
ICICI Bank, SBI, Axis Bank and HDFC Bank dipped between 1-2% each.
Markets end higher ahead of Fed outcome, China stimulus
Sensex gained over 100 points and ended at 26147.33 while the Nifty ended 27 points higher at 7,795.75.
Sensex falls at close; metals, banks perform well.
So, what does 2016 have in store for the Indian markets? Will they be able to take a giant leap forward in the leap year, and what are the key risks?
The broad-based NSE Nifty rose 52.80 points, or 0.50 per cent, to end at 10,530.70
Benchmark share indices ended lower on profit taking after they touched record highs in the previous session.
Sharp fall in capital goods production and manufacturing activity also dented sentiments.
Infosys, Tata Motors, ONGC, TCS and GAIL are the top 5 losers.
Metal shares were the top gainers with Hindalco up over 5%.
Sensex has shed over 150 points in afternoon trade.
Index heavyweight RIL surged 3% to end above Rs 1,000 mark while IT majors were also the top gainers.
Sensex lost 76 points to end at 25,589 while Nifty shed 23 points to end at 7,649.
Markets surged on hopes that the exit polls would show that the BJP winning majority in the general elections.
In the broader markets, the BSE Midcap and Smallcap indices were up 0.5% each
Investors booked profits at higher levels after the Sensex and Nifty hit all-time highs in the previous session.
Sensex in green, midcaps, smallcaps fail to show up; bluechips rule.
Growth concerns on China, which has already seen the yuan getting devalued twice in August, have rattled global financial markets, including that of India.
BSE Mid-cap index ended at a record closing high of 10499.86 and CNX Mid-cap index ended at a record closing high of 12672.85 levels.
Movement of rupee and crude oil prices will also dictate the trend
The S&P BSE Sensex surged 160 points to close at 25,262.
Monsoon is expected to be normal in June.
Markets will be closed on Thursday and Friday on account of Holi and Good Friday, respectively.